You cannot use logical operators in Switch statement. Even you cannot use the float data type. Switch only supports integer and characters.